/**
 * 
 */
package com.pd.service;

import java.util.List;

import com.pd.dao.ICustomerDAO;
import com.pd.dto.Customer;

/**
 * @author prakash
 *
 */
public class CustomerService implements ICustomerService {

	private ICustomerDAO customerDAO;

	/**
	 * @param customerDAO
	 *            the customerDAO to set
	 */
	public void setCustomerDAO(ICustomerDAO customerDAO) {
		this.customerDAO = customerDAO;
	}

	/**
	 * @see com.pd.service.ICustomerService#getAll()
	 */
	@Override
	public List<Customer> getAll() {

		return customerDAO.getAll();
	}

	/**
	 * @see com.pd.service.ICustomerService#get(java.lang.String)
	 */
	@Override
	public Customer get(String id) {
		return customerDAO.getCustomer(id);
	}

}
